package com.ruoyi.accounts.service;

import com.ruoyi.accounts.tcp.WSCommand;
import javax.websocket.Session;

public interface IClientHandler {
    // 判断该处理器是否能处理特定命令
    boolean canHandle(String commandType);
    
    // 处理命令
    void handleCommand(WSCommand command, Session session, String message) throws Exception;
    
    // 获取机器类型
    Long getMachineType();
}
